package com.atguigu.lease.common.minio;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/*
* 属性类:
*  作用: 读取springboot的配置文件
* */
@ConfigurationProperties(prefix = "minio")
@Data
@Component
public class MinioProperties {
           // springboot配置文件中的属性和当前类中的属性命名一致,自动赋值
            private String endpoint;
            private String accessKey;
            private String secretKey;
            private String bucketName;
}
